import { defineStore } from 'pinia';

export const usetmplate8Store = defineStore('usetmplate6Store', {
  state: () => ({
    isDrawer: false,
    persist: true,
    unitIndex: -1,
    isSelectDrawer: false,
  }),

  actions: {
    setIsDrawer(boolean: boolean) {
      this.isDrawer = boolean;
    },
    setUnitIndex(index: number) {
      this.unitIndex = index;
    },
  },
  // persist: true,
});
